package com.example.bilibiliprojectspringboot.service.impl;

import com.example.bilibiliprojectspringboot.mapper.VideoMapper;
import com.example.bilibiliprojectspringboot.model.entity.VideoInfo;
import com.example.bilibiliprojectspringboot.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoServiceImpl implements VideoService {

  @Autowired
  VideoMapper videoMapper;

  @Override
  public List<VideoInfo> selectAllVideoPublisherTimeDesc() {
    return videoMapper.selectAllVideoPublisherTimeDesc();
  }

  @Override
  public void insertVideoByObject(VideoInfo videoInfo) {
    videoMapper.insertVideoByObject(videoInfo);
  }
}
